<!DOCTYPE html>
<html>
<head>
    <meta charset=utf-8>
    <meta http-equiv="X-UA-Compatible" content="IE=9">
    <title>{cscms:title}</title>
    <meta name="Keywords" content="{cscms:keywords}" />
    <meta name="Description" content="{cscms:description}" />
    <link rel="shortcut icon" href="{cscms:webpath}favicon.ico" />
    <link rel="stylesheet" href="{cscms:webpath}packs/font/font.css">
    <link rel="stylesheet" type="text/css" href="{cscms:tempurl}css/user.css" />
    <script type='text/javascript' src='{cscms:tempurl}js/user.js'></script>
</head>
<body style="background: #f5f5f5">
	{cscms:head}
	{cscms:right}
		{cscms:left}
			<div class="sp-cont-r">
				<div class="layui-tab layui-tab-card" lay-filter="dt1" style="margin-top: 0px">
				    <ul class="layui-tab-title" style="height: 41px">
				        <li {if:'{cscms:fid}'=='all'}class="layui-this"{end if}><a href="[user:url userlink=msg]">全部消息</a></li>
				        <li {if:'{cscms:fid}'=='xt'}class="layui-this"{end if}><a href="[user:url userlink=msg,index,xt]">系统消息</a></li>
				        <li {if:'{cscms:fid}'=='wd'}class="layui-this"{end if}><a href="[user:url userlink=msg,index,wd]">未读消息</a></li>
				        <a style="float: right;margin-right: 15px;margin-top: 5px" href="[user:url userlink=msg,add]" class="layui-btn layui-btn-small layui-btn-danger">发送消息</a>
				    </ul>
				    <div class="layui-tab-content" style="padding:10px 15px">
				        <div class="layui-tab-item layui-show">
					        {cscms:msg table="msg" pagesize="10" uid="auto" sort="addtime" order="desc"}
					        	<li class="dt-one" id="del[msg:id]">
					        		{if:[msg:uidb]==0}
					        			<a class="dt-img" href="javascript:;"><img src="{cscms:tempurl}images/xt.gif"></a>
									{else}
										<a target="_blank" class="dt-img" href="[msg:url ulink=index]"><img src="[msg:user zd=logo]?size=60*60"></a>
									{end if}
					        		<div class="dt-neir">
					        			<div class="dt-time">[msg:addtime style=time]</div>
					        			{if:'{cscms:fid}'=='my'}<div title="删除" onclick="user.blog_del([msg:id])" class="dt-del"><i class="fa fa-trash-o"></i></div>{end if}
					        			<div class="dt-title" style="margin-bottom: 15px">
					        				<i class="fa fa-lightbulb-o colorw"></i>&nbsp;{if:[msg:uidb]==0}系统消息{else}<a href="[msg:url ulink=index]" style="font-weight: normal;" title="查看他的主页" target="_blank">[msg:user zd=nichen]</a>{end if}
					        			</div>
					        			<div class="dt-nl">
					        				<a href="[msg:url userlink=msg,show]/[msg:id]" title="查看详情"><font>●</font> [msg:name]</a>&nbsp;
											{if:[msg:did]==0}<img src="{cscms:tempurl}images/new.gif" />{end if}</span>
					        			</div>
					        		</div>
					        	</li>
					        {/cscms:msg}
					        {if:{cscms:pagedata}==0}<div style="line-height: 100px;text-align: center;color: #666">暂无相关数据！</div>{end if}
					        <div>
					        	<a class="layui-btn layui-btn-small layui-btn-primary" href="javascript:user.yidu();"><i class="fa fa-check colorl"></i>全部标记为已读</a>
					        	<a class="layui-btn layui-btn-small layui-btn-primary" href="javascript:user.msg_del('[user:url userlink=msg,del,yue]','确定删除一个月以前消息？')"><i class="fa fa-close colorr"></i>&nbsp;删除一个月以前消息</a>
					        	<a class="layui-btn layui-btn-small layui-btn-primary" href="javascript:user.msg_del('[user:url userlink=msg,del,all]','确定清空全部消息?')"><i class="fa fa-trash colord"></i>&nbsp;清空全部消息</a></div>
					        <div class="page" style="text-align: right;{if:{cscms:pagedata}==0}display: none;{end if}">
	                            <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-0">
	                                <a href="{cscms:pagefirst}" class="layui-laypage-last" title="首页">首页</a>
	                                <a href="{cscms:pageup}" class="layui-laypage-last" title="上一页">上一页</a>
	                                {cscms:pagenum len=6}
	                                <a href="{cscms:pagedown}" class="layui-laypage-next">下一页</a>
	                                <a href="{cscms:pagelast}" class="layui-laypage-last" title="尾页">末页</a>
	                            </div>
	                       </div>
				        </div>
				    </div>
				</div>
			</div>
		</div>
	</div>
	<div class="mar10"></div>
	<div class="mar10"></div>
{cscms:bottom}
<script type="text/javascript">
    $(document).ready(function() {
    	$('#left_msg').addClass('on');
    });
</script>
</body>
</html>